<{include file="Public/top.html" }>
	</head>
	<body>
		<div id="warpper">
            <div class="content">
                <div class="location">家政服务</div>
                <{include file="./nav.html" }>
                <div class="filedSet" style="padding-bottom: 0;">
                    <div class="search">
                        <form action="<{U('HouseWork/index')}>" id="searchForm" method="get" class="ui-form reportForm">
                            <input name="m" type="hidden" value="<{$module}>">
                            <input name="c" type="hidden" value="<{$controller}>">
                            <input name="a" type="hidden" value="<{$action}>">
                            <input name="actype" type="hidden" value="<{$actype}>">

                            <input name="p" id="page" type="hidden" value="<{$page|default:1}>">
                            <input name="limit" id="limit" type="hidden" value="<{$limit|default:10}>">

                            <!--<div class="ui-form-item inline-block">-->
                                <!--<label class="ui-label">关键字</label>-->
                                <!--<input type="text" value="<{$keywords}>" class="ui-text bg-text keyword" name="keywords" placeholder="活动名" style="width: 80px;" />-->
                            <!--</div>-->

                            <!--<div class="ui-form-item inline-block">-->
                                <!--<button type="submit" class="ui-button" onclick="LayerShow();">搜索</button>-->
                            <!--</div>-->
                        </form>
                    </div>
                </div>

                <!--表格内容-->
                <div class="mainGrid">
                    <table class="ui-table ui-body">
                        <thead>
                        <tr>
                            <th class="pct20">项目名称</th>
                            <th class="pct15">上线时间</th>
                            <th class="pct20 last-col">操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        <{foreach from=$list item=item}>
                        <tr id="id_<{$item.id}>">
                            <td class="title" data="<{$item['imgList']}>"><a href="<{$WEBSITE}>wap.php?m=Wap&c=HouseWork&a=info&id=<{$item['id']}>" target="_blank"><{$item['title']}></a></td>
                            <td><{$item['beginShowTime']|date_format:"%Y-%m-%d <br/> %H:%M:%S"}></td>
                            <td class="ta_l">
                                <div class="handler">
                                    <a href="<{U('add')}>&id=<{$item.id}>" onclick="LayerShow();">修改</a>
                                    <a href="javascript:del('<{$item.id}>');">删除</a>
                                </div>
                            </td>
                        </tr>
                        <{/foreach}>
                        </tbody>
                    </table>
                </div>
                <div class="pagination">
                    <!--描述：分页-->
                    <{include file="Public/page.html" }>
                </div>
            </div>
		</div>
        <{include file="Public/foot.html" }>
	</body>
</html>
<script>
    var delUri = "<{U('del')}>";
    function del(id){
        if(!confirm('是否执行删除操作')){
            return false;
        }
        $.get(delUri+"&id="+id,function(result){
            if(result.status==0) {
                $('#id_'+id).remove();
            }else{
                layer.msg(result.msg);
            }
        },'json');
    }

    $(document).ready(
            $('.title').on('mouseover',function (e) {
                if(e.target.tagName!='TD'){
                    return;
                }
                layer.closeAll();
                var url=$(e.target).attr('data');
                var title = e.target.innerText;
                layer.tips("<h1 style='color: #000000;text-overflow:ellipsis;overflow: hidden;display: -webkit-box;-webkit-line-clamp: 1;-webkit-box-orient: vertical;min-height: 25px;'>"+title+'</h1><img src="'+url+'" style="width:280px;height:140px;">', e.target,
                        {
                            tips:[4,'#ffffff'],
                            area: ['300px', '180px'],
                            skin:'BoxShadow',
                            time:100000
                        });

            })
    );







</script>
